import {API} from "@/api/NewAxiosAPI";

const APi = API;

export async function getTaskById(id: string, token: string) {
    const r = await API({
        url: "/project/phase/task/info",
        method: "get",
        params: {
            taskId: id
        },
        headers: {
            Authorization: token
        }
    })
    return r.data
}